package com.jcj.jcjcache.command;

import com.jcj.jcjcache.core.Command;
import com.jcj.jcjcache.core.JcjCache;
import com.jcj.jcjcache.core.Reply;

public class InfoCommand implements Command {

    private static final String INFO = "JcjCache Server[v1.0.1], created by jcj." + CRLF
            + "Mock Redis Server, at 2024-06-19 in sh." + CRLF;


    @Override
    public String name() {
        return "INFO";
    }

    @Override
    public Reply<?> exec(JcjCache cache, String[] args) {
        return Reply.bulkString(INFO);
    }
}
